﻿<%@ Page Language="C#" MasterPageFile="~/_catalogs/masterpage/Eneta.Profile.master" Inherits="Eneta.Portal.Profiles.EnetaAddBlogPage,Eneta.Portal.Profiles,Version=1.0.0.0,Culture=neutral,PublicKeyToken=53d887a3f906cc2b" meta:progid="SharePoint.WebPartPage.Document" %>
<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderMain" runat="server">
<div class="blog-head"> 	
	<div class="blog-head-txt" style="float:left"> 
		<h2><a href="#">Blogi lisamine</a></h2> 
	</div>
</div> 
<div class="tsentraliseeritud">
<ul class="list"><li>Enetaga on oodatud liituma kõik eesti keelsete tehnoloogia-alaste blogide autorid. Portaalis ilmuvad postitused, mis on seotud Microsoftiga või käsitlevad platvormist sõltumatut tehnoloogiamaailma. Uudised, kogemuste jagamine ja konstruktiivne kriitika on alati teretulnud, kuid ebasobiliku sõnavaraga või vaenu õhutavaid kandeid ei avaldata.</li></ul>
</div>
<div class="slide-box warning" runat="server" id="warningBox" style="display:none"> 
	<div class="slide-box-center"> 
		<div class="slide-box-bottom"> <!--a class="close" href="#">close</a--> 
			<div> 
				<p>Palun paranda vead, vastavad väljad on märgitud punase raamiga.</p> 
				<ul>
				<asp:Repeater runat="server" ID="errorsRepeater">
					<ItemTemplate>
						<li><asp:Label runat="server" ID="errorLabel" ></asp:Label></li>
					</ItemTemplate>
				</asp:Repeater>
				</ul>
			</div> 
		</div> 
	</div> 
</div> 

<div class="content-info-area">

	<div class="enter-information"> 
		<fieldset> 
			<!--input-holder start--> 
			<div class="input-holder"> 
				<div class="info-row" runat="server" id="blogNameContainer"> 
					<div class="error-message" runat="server" id="blogNameErrorMessage" Visible="false"> 
						<span runat="server" id="blogNameErrorLabel"></span> 
					</div> 
					<div class="title"> 
						<h5>Blogi nimi</h5> 
					</div> 
					<div class="error-note" runat="server" id="blogNameErrorNote" Visible="true"> <span>*</span> </div>
					<div class="information-main"> 
						<asp:TextBox runat="server" id="blogNameField" CssClass="text-go"></asp:TextBox>
						<a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=AddBlog&area=Name&width=216" id="nameTooltipLink" name="Help" class="jTip" style="float:left;">?</a>  
					</div> 
				</div> 
				<div class="info-row" runat="server" id="blogUrlContainer"> 
					<div class="error-message" runat="server" id="blogUrlErrorMessage" Visible="false"> 
						<span runat="server" id="blogUrlErrorLabel"></span> 
					</div> 
					<div class="title"> 
						<h5>Blogi aadress</h5> 
					</div> 
					<div class="error-note" runat="server" id="blogUrlErrorNote" Visible="true"> <span>*</span> </div>
					<div class="information-main"> 
						<asp:TextBox runat="server" id="blogUrlField" CssClass="text-go" Text="http://"></asp:TextBox>
						<a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=AddBlog&area=BlogUrl&width=216" id="blogUrlTooltipLink" name="Help" class="jTip" style="float:left;">?</a>  
					</div> 
				</div> 
				<div class="info-row" runat="server" id="rssUrlContainer"> 
					<div class="error-message" runat="server" id="rssUrlErrorMessage" Visible="false"> 
						<span runat="server" id="rssUrlErrorLabel"></span> 
					</div> 
					<div class="title"> 
						<h5>RSS aadress</h5> 
					</div> 
					<div class="error-note" runat="server" id="rssUrlErrorNote" Visible="true"> <span>*</span> </div>
					<div class="information-main"> 
						<asp:TextBox runat="server" id="rssUrlField" CssClass="text-go" Text="http://"></asp:TextBox>
						<a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=AddBlog&area=RssUrl&width=216" id="rssUrlTooltipLink" name="Help" class="jTip" style="float:left;">?</a>  
					</div> 
				</div>				
				<div class="info-row" runat="server" id="descriptionContainer"> 
					<div class="error-message" runat="server" id="descriptionErrorMessage" Visible="false"> 
						<span runat="server" id="descriptionErrorLabel"></span> 
					</div> 
					<div class="title"> 
						<h5>Tutvustus</h5> 
					</div> 
					<div class="error-note" runat="server" id="descriptionErrorNote" Visible="true"> <span>*</span> </div>
					<div class="information-main"> 
						<asp:TextBox runat="server" id="descriptionField" CssClass="text" TextMode="MultiLine"></asp:TextBox>
						<div style="float:right">
							Tähemärke<br/>
							<strong><span id="descriptionLetters">255</span></strong>
							<a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=AddBlog&area=Description&width=216" id="descriptionTooltipLink" name="Help" class="jTip" style="float:left;">?</a>  
							<script LANGUAGE="JavaScript">
							var sdField = document.getElementById(descrFieldId);
							var countField = document.getElementById('descriptionLetters');
							if(document.all)
								countField.innerHTML = 255-sdField.value.length;
							else 
								countField.textContent = 255-sdField.value.length;
							
							function textCounter(field, e) 
							{
								var keyCode = 0;
								if(window.event)
									keyCode = window.event.keyCode;
								else 
									keyCode = e.which;

								var countField = document.getElementById('descriptionLetters');

								if(keyCode < 32 && keyCode != 13)
									{
										if(document.all)
											countField.innerHTML = 255 - field.value.length;
										else 
											countField.textContent = 255 - field.value.length;
										return true;
									}
								if (field.value.length >= 255) // if too long...trim it!
								{
									field.value = field.value.substring(0, 255);
									if(document.all)
										countField.inneHTML = "0";
									else 
										countField.textContent = "0";
									return false;
								}
								else 
								{
									if(document.all)
										countField.innerHTML = 255 - field.value.length;
									else 
										countField.textContent = 255 - field.value.length;
								}
							}
							</script>
						</div>

					</div> 
				</div>
				<div class="info-row" runat="server" id="firstEntryContainer"> 
					<div class="error-message" runat="server" id="firstEntryErrorMessage" Visible="false"> 
						<span runat="server" id="firstEntryErrorLabel"></span> 
					</div> 
					<div class="title"> 
						<h5>Esimese postituse kuupäev</h5> 
					</div> 
					<div class="error-note" runat="server" id="firstEntryErrorNote" Visible="true"> <span>*</span> </div>
					<div class="information-main"> 
						<asp:TextBox runat="server" id="firstEntryField" CssClass="text-go clear" Text="pp.kk.aaaa"></asp:TextBox>
						<a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=AddBlog&area=FirstPostDate&width=216" id="firstPostTooltipLink" name="Help" class="jTip" style="float:left;">?</a>  
					</div> 
				</div>
			</div>
			<div class="submit"> 
				<asp:Button runat="server" id="saveButton" Text="Salvesta"></asp:Button>
			</div> 
			<a class="loobu" href="javascript:history.go(-1)">Loobu</a> 
			<div style="clear:both;"><br/>&nbsp;</div>
		</fieldset>		
	</div>
</div>
</asp:Content>